
#ifndef _GD_ESAM_H_
#define _GD_ESAM_H_

#include "cfg_main.h"

#define ESAM_OLD        1

#ifdef ESAM_OLD

INT32U MakeDirectPwd(GdSuperFrameType *gdSuperFrame, INT16U Len);
INT16U GdEsamMakeCrcPwd(INT8U *pdata);
INT32S GdEsamAnsCmdReset(GdSuperFrameType *gdSuperFrame, INT8U bErr, INT8U* pbData, INT8U bDataLen);
INT32S GdEsamVeryMac(GdSuperFrameType *gdSuperFrame);
INT32S GdEsamVeryPassword(GdSuperFrameType *gdSuperFrame);
INT8U GetFnPnFromDtDa(INT8U bDA, INT8U bDAG, INT8U bDT, INT8U bDTG, LCFnPn *pFPNGrp, INT8U bFPNGrpNum);
void FnPnToBytes(INT8U bFn, INT16U wPn, INT8U *pbBuf);
INT32S GdEsamAck(GdSuperFrameType *gdSuperFrame, INT8U* pbData, INT16U wDataLen);
INT32S GdEsamVerifyPwd(GdSuperFrameType *gdSuperFrame);

#else

#endif

#endif
